set last clicked element before showing menu.