added code for home page and dashboard