add methods in layouts