adds and removes legends to correllate with layers tied to specific options. Also fixes #56