Added functionality for the 'refresh all' button