flags: call the flag_location even if the user is null. Also fixed a publish sattement
editor: now with unique functionality, still not the right fix thoguh. will need more attention later