Fixed incremental issue with modal viewer

Fixed the incremental issue with the modal page