add default controller, add redirect function