Fixed add_view so it works