Updating tabs and moving method 'correct_term_link' to the top for spliting the front and back-end logic