Dynamically adds and removes buttons