handle localstorage errors and session avatarname view