Making a default options object and moving redirect URL and popup options into it