input buttons working