Edited the licenses dialog so it disposes itself on closing.