toggle popup opening