Thank You very much sir. This has solved the problem. I am trying to build up a calculator with various features. This will help in a big way for my progress.
Is de-registering a normal behavior?
I have no idea how to mark this answer as useful but I confirm that this was a very useful answer.