#977 set layouts by id