draw base on click event