Added button classes and autocreation of controller from object