added loading template & spin