Main dashboard page and necessary code.