Refactor update method
Refactor show action