added logout and template module