Added fuction to work with actions and checnged index content