implement history and drop down