Refactor main layout using partials
State template sidebar