get parent node until is button