rewriting frontpage to use template