Add dashboard functionality for home and pages