using replace instead of trigger for router navigate