capturing value of click