Set classes in modal window dynamically.