added url rewrite feature when app loads