fixed create view relationships