add button click control  & exit application