intial logic for themes extension port