added sanitation,general page handling