clean up

clean up of existing code for notes panels