(cikl/cikl-ui) Updated UI to include detect and import time sort buttons.

This commit includes some minor code cleanup as well as import and detect time sorting functionality.