moved flow and entry create method in models