added button functions and labels