Making menu structure dynamic depending on availability of data rpovided
through interfaces and fixing bugs in EnhancedSearchViewController by
using index guard to prevent out-of-bounds exceptions on creation of
cell context menus