Added ability to pass over template that should be visible while loading