Corrections to the position of tooltip and details div