fixed issues with views