fixed layout bugs, other checks in user interface