got the modal almost completely working