removed view dependency on model