added logout to swith community page