Added click to sidebar to populate fields