preparing for validation
[bugfix] edit and selectfood now works properly
passing array key instead of cicle index to selecFood