added button event and ajax