data binding for some pages, cleaned up some code, functions figured out