fixed the cancel button