Added settings UI using Preference API. Using a fragment based method.