layout made buttons functional