events tableView have title if empty

if there no events title appear (cell) and ask insert event.
also organize the code.