Added buttons and click function