improve performance

- add loader gif
- improve overall performance