change ajax routing for use with apps