update layout, add resources