template updates, added logout handler
template update