Added new popup helper functions