refactoring and quickstart load form cookie done