fixing a cancel button that isn't working