added hook for theme