Initiated viewer function