Restructured view model.
file name modified.
header writing implemented.
alert implemented.