added new loading overlay layout, fixed app crashing on restart bug