update layout and create index and show actions