Navigate().to function moved to each method