implemented callback functions for input buttons, fixed for almost all input