add code for plans and notes