     public var bounceOffset: CGFloat = 0
     public var velocityTreshold: CGFloat = 0
     public var highlighedIndex: Int?
+    public var autoUpdateHighlightedIndex: Bool = true
     public var heightForRowAtIndexPath: CGFloat = 57
     public var heightForHeaderInSection: CGFloat = 30
     public var enabled: Bool = true

        if indexPath.row < startIndex || indexPath.row > items.count - 1 + startIndex {
            return
        }
        highlighedIndex = indexPath.row
        tableView.reloadData()
        
        let selectedItem = items[indexPath.row - startIndex]

    public convenience init(items: [MediumMenuItem], forViewController: UIViewController) {
        self.init()
        self.items = items
        height = CGRectGetHeight(UIScreen.mainScreen().bounds)-80 // auto-calculate initial height based on screen size
        frame = CGRectMake(0, 0, CGRectGetWidth(UIScreen.mainScreen().bounds), height)
        contentController = forViewController
        menuContentTableView = UITableView(frame: frame)
