added controller
basically did everything