Fixed bug - Button1 not accepting duplicate class

Added a for loop for all the buttons and change the trigger from button
class to button id

Also added immediate error raise if duplicate button is touched.