whoops close button now has function