fix some notices, make the textarea actually work