begin code clean up (check switch statements for operation buttons)