Fix multiple page view bug, add public/lib files