maximize viewer on initial document render