added checkbox for lock instead of textbox