added a drop down select and store data function in js