added edit and readonly views and model integration to view