Index style updates
Handle shift+enter to add a new box below. Also prune empty elements