     var passwordEntity: PasswordEntity?
 }
 
-class PasswordsViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
+class PasswordsViewController: UIViewController, UITableViewDataSource, UITableViewDelegate, UITabBarControllerDelegate {
     private var passwordsTableEntries: [PasswordsTableEntry] = []
     private var filteredPasswordsTableEntries: [PasswordsTableEntry] = []
     private var parentPasswordEntity: PasswordEntity? = nil
+    
+    private var tapTabBarTime: TimeInterval = 0
 
     var sections : [(index: Int, length :Int, title: String)] = Array()
     var searchActive : Bool = false

        syncPasswords()
        refreshControl.endRefreshing()
    }
}

extension PasswordsViewController: UISearchResultsUpdating {

        setNavigationItemTitle()
        initPasswordsTableEntries(parent: nil)
        addNotificationObservers()
        generateSections(item: passwordsTableEntries)
        tabBarController!.delegate = self
        tableView.delegate = self
        tableView.dataSource = self
        definesPresentationContext = true
