working on the sell button click event