add styling for error, disable draggable on error