Close window to return to previous view