setting correct viewport