Added newmain cleaned up code(categories broken in newmain atm)
fixed category display bug