updated app and detail template