added modal for text input or drawing