Add ability to specify dom instead of title