updated the views and routing