Modified code for drawing handlers to make snapping work better, especially for incompatible signals, once I'm done my thesis I need to refactor this whole portion