Theme chooser dynamic instead of on submit

The theme is now changed without submitting the page.  dynamic action is
used instead. Also fixed some template bugs.