sample code of setting button, though not working.