add client-side routing; setup templates and corresponding controllers