updating button layout