click function on small view