using popups instead of a separate controller