Adding buttons to a user interface