add sending json object to front-end from home page,
add JsonCommands class for create objects to json and from json,
change restore controller and registration controller using JsonCommands