set up theme functionality