Added onAttach onDetach hook to ViewImpl

"Pas con" :) What happens if the widget is null ? We should be able to detect this case somehow and throws an exception