Added "clear all" action, fixed row header sizes calculation + minor refactoring