Added a controller for determining context.
Added footer.