fix detect current action in crud controller