javascript bug fixes, show page, and misc.