adding save action method