Fixing issue where  were jquery wrapped elements when they should ahve been views