working on common action handler