create custom routs and flass messages