remove dublicate code from sale fragment