fix redirect and added an id