fixes bug where invite screen remained even after chaning event