added routes config and view def in controller