fixed all the warnings and refactored for manage the view. Now the view is a little bit broken :(
Still broken, but less broken