use a Constants file
separate save form from click handler
refactor save
can select a window to capture
stop window recording if the window is closed
connect the stop menu
clean tmpdir if there is any on destruction