finish create and edit viewer..fiuh