added maxlevel text box