added notes scaffold and associations
added case_id
added sorting and notes modal