close button on modal wasn't working