implemented table autopopulation, implemented table edit