Make setButtons function