Add main template
added hooks and corrected css
Corrected css call