Added support for analytics and casting screen