added prompt for user to add new item to the beginning or end of the todo list