modified input form and added title field