adding ability to get final coordinates after drag