added single template. refactored page template