add tree fix for direct publishing and unpublishing
also fixes the issue using the tab issue so new windows get opened in admin view rather than a redirect
might fix the line issue