action result server side refactoring