added model and view