Write document for button constructive function