adding in get_spinner function to utils