Moved button into inside block
fixed validation on edit mode.
change the variable name from $self to $context
Added javascript for calculate the cancellation fee