Add viewport directive