updated create and show action