Added click to open functionality