edit table and add some controller