removed factory from buttonscontroller