admin-ui: Modify the way details request data

The code retrieves the wanted data when the user clicks the
corresponding button and to displays them properly.