included x,y to on_click method