fixing cancel button