-Added logic for input buttons.