silly copy/pasta
made admin menu function specific to integration js file.