added homepage controller, restructured view layer