add styling to the loading msg, fix code formatting