bind correctly to closeModal click