Coord modification code refactored from chbox to radiobtn

Hi all, I have refactored code for modification of coords according to our earlier discussions, it seems to be much more clean now .

This fixes #2290.