There are various ways this application could have been implemented, and you can easily add functionality to make the app more dynamic, with more interesting data analysis and visualization.
Read the following for more advanced topics and details about creating apps:
See the App Framework section of Splunk Developer FAQ.
Tip: If you can't find the answer to your question in these resources, post your question on Splunk Answers. Use the dev tag to help us find you.