initialize buttons earlier