#master: #APPDIR-1: Fix errors in the controller
#master: #APPDIR-1: Change the path to footer page. Refactoring the code