created documents model and controller