messed up the modal directive