add dynamic ID on switch view button

Changed the method to attribut the ID of view switcher, to allow
multiple instance without duplicate ID name