Update admin.tpl

Javascript functions added