read and recalculate clicked corner coordinates