move spinner to own file