Adjust frame correctly when switching between field when keyboard is already shown 

The code is basically self explanatory. If something is not clear enough I will be glad to clarify