check target rather than srcElement