changed the spinner to custom element