create and modify method for rootViewController