Consider following application (it\'s a schematic preview and it may be a bit tricky to understand!):
The app contains 3 screens, which is as follows: