add button detail basic functionality