join page closing when closeIcon clicked