Add deep linking.
Added handling for navigating back and forth.