make toggle archive work

code bad, clean it up
set up filter dialog box for status