finished modal

Fixed all the stuff we talked about and added the closing functionality let me know if it looks good to you!