implement model in view
fix implementation of model in view