add view, set routes