reworked link handling to work differently in-app