generate flex-link on theme load