modal added
added middleware to accept http headers in request