use data-transition, data-position-to and link position when opening popups. Fixes #170