Templates header fixed + some minor bugs fixed in views.