getting basic functions and working button