overlay loading refactoring