Few updates, mainly sessionmanager repair. Few bugs in template.