Refactor: remove dup code
Set @options in assing_ref_vars

@options enable to keep params when switching ref.
Enable to filter graph by ref
Add "Show only selected branch" checkbox
Add test for "Show only selected tag"