apply flex theme