adding app directive