shifted location of flag submission in order to set it up for the toolbar