extract button onclick to method
extract button onclick to method