Fixed disabled flot area and minor improvements

* fixed regression: plot was not enabled when adding plots to previously
    disabled plot area
* plot button is deactivated now when less than 2 rows are selected
* code formatting