modified why mirage popup, fixed errors and added transition