fixing spinner and testing other functions