seperated generator into namespace, added controller and view generator