user_agent controller improved