mainly moved to jquery

various changes - jquery - admin function