added functionality to sale gui