Clear modified status when opening new tab