formatting, refresh loop and other changes for username cloud