got the modal working