Fixed lifecycle and bindings so that page works.