modified to add text box for title field