button functions, header, and updated main in order to take button inputs