fix problem with set layout in view and added to controller async pattern