working on click functionality