added options saving and loading with cookies