implemented plot controls