Moved code to onStart so that the table is recreated each time