Update dashboard cache to 0.5.16 and some refactoring.