Pop up working properly