index file added viewport adjustment code

index file added viewport adjustment code