create views and routes