Fixed bugs in content manager and contact.cgi, improved UI of manager and fixed warnings in functions.cgi