style tweaks and bug fix for using first visible instance of target sele...