canvas transform resets after adding new tab