rethink spinner loader logic