loading overlay improvements and general cleanup