creating cancel button