Porting search/create layout fix from generic object_widget template to the directive type and system/process type ones as well