update history when layers become visible