added clicking function to button
added clicking function to button