Added a spinner and implemented sort by store