Added callback function for changing visibility of device container

The callback request_callback() runs each time a request completes, and checks how many times it has been called. When the number of times it has been called matches the number of requests there were, it changes visibility of the device container from 'hidden' to 'visible'. This helps smooth out the paging between devices.