Optimized code SearchLinkController and SearchFormController for graph visualizer app.