Added view and controller to file factory but content is not correct