Added onAttach onDetach hook to ViewImpl

If init widget isn't called... it will never be attached to the dom, right? :dancer: