several changes in module.class.php and base js