added logic to harvest app layout to be recorded