added profit view to template