added bit of daniel's code
90% of pages are done with bindings