Templates and syncing the navbar stuff

It's a big one.