capture the click event and launch app