Added Cancel Button functionality