Add getDetails function
Fix merge conflict
Add retrieveCategories and retrieveoptions functions to get elements for <select> tag