delegate input buttons events