ticket:3 add middleware, model and requests page