generate crud and set up global nav.
fix referer reference.