added logout in views