add_new_keyword js and view refactoring