Finished the functionallity of Buttons