break plotting UI functionality into function
add toggle for buttons