Refactored popup controller out of player controller