Main Template done