Repair some errors, pages left are dashboard and search, still need some logic on backend.