fade animation added and footer moved to sub templates