cleans code for themes selector