used wait on to manage loading template