Remove unused var and add global declaration in appview.
Finish up the GSG + footer.