here is a simple but complete example of implementing multiple UI flows using fragments.