Split application template to two: with sidebar and not