update buttons layout