resize after adding buttons