added agentType to view for mobile detect