coding all buttons