Dynamical AdS/Yang-Mills model