Added dashboard functionality, seperated header and footer