moved som inline javasctipt
added admin script