Added click event to close boxes