Add support for view with namespaces

Hello,

I was trying the library and found that does not work with Nested Views with namespaces so i made a small fix  ... hope is useful