updated theme functions