Removed dublicated dismiss call when tapping cancel