added templates and style, added logout function