using Navigate.to function.