changed parent selectors

changed parent selectors to more elegant solution
added attributes for tooltips