adding theme and updating relation