creating action for viewWorksheet