caretpositioning on click + better handling multiple masks