added button functionality (to include Ajax)