Fixed positions of the tooltip and made more things dynamic.