added logout to home view