implement side handle for rect diagram