added directive for handling preview. integration with angular-ui modal to show list of notes to open.