Added code to close FB window