Added code to close window in FB login