able to add buttons dynamicaly.
implemented function adding buttons