Added logout on power click