fixed spinner and display results outsourced