added createView Code