fixing small issue when user has no courses assigned yet.
Cleanup of footer as pagesettings is always included already