init button code