fix api endpoint, minor changes to popup