Add code for spinner