added loading template fix