made all buttons functioning