Refactor. Handle state with filtered_suggestions, since that's the only
thing that affects rendering. Added functionality to click suggestions.