fixes close button so it will close modal box