Make the discard button work