added some hooks and theme function into .module