added hook_theme, changed form callback and added template