fix populate bugs, need to make console work and get the view and controller in