Fixed+Provider

Fixed button not being initialized (no idea how that happened). also
added other code.