added tpl_basedir() function for backwards compatibility
added event to all tools menues