bug fixes, implement very basic export functionality for current page