Fixing edit problem and reload ngTable. Must create them once and without any function