added queryFunc parameter to user_data api, updated ui and api to reflect changes. Also made some updates to make the ui a bit more informative