edited header and textbox max lengths
fixed some errors