update ui button size changed logic