implemented a button