Added A partial and middleware