Implemented cancel button