added loop for themes