fixed several state functions. Attempted to open results menu when
calculate clicked - works once, but there is a bootstrap bug which
causes it to fail on second toggle
more fixes in plot options, added disabled style to results menu
when results are not available yet