added listeners for buttnos for modes