Change hook of custom admin menu to prevent 'insert from media library'-bug