get rid of loading spinner code