click handling added