create config object and showOnHover setting