save options in popup