Fix the bug causing switch button to disappear after reloading table's data

Signed-off-by: Agustinus Verdy Widyawiradi <verdywid@gmail.com>