call view sale and add position to sharedprefs