added views, templates, secure file delivery