fix the empty page publish problem
fix error messages
remove excess queries from menu builder