added more controls to the popups