fixed query for buttons with href