anchoring and bounds checking for text area