updated the front end with a search window and the getdata now takes an argument to allow for different searches