refactor links to app