implemented factory and controller, removed some junk from seed project