feature view engine patches

Minor patches i needed to do before getting custom view up and running on my machine

I havent done a pull request on top of pull request before. Hope this works out :)