added command to delete selected entry

refactored ui_state interactions with ui in order to
hide complexity of ui_state actions from ui (with the
exception of ending interaction and writing chosen
result to the terminal)