modified the action.java on client side