added auto page close so it closes the firebase reference