fixed bug hook position rendered incorrectly
added support for view object in widget rendering