Reducing code level of most of the click handler.