Adding dynamic expansion for sub buttons