onclick event added for touch devices