fixed issues with view rendering