Add validation and correct view buttons.
Read the file as text on the directive