Linked all buttons to functions