Took out a bunch of random code and added click to close the modal