tighting up the modal controller