Adds dashboard functions and the views