introduce thememiddleware
introduce theme middleware