Adding directive to check for compatibility view