reworked routes.rb in a flow based order