added logout needs auto refresh