Managed to get working version, now trying to solve removing table rows