Reworked some templates, introduced auth checks to controllers