remove dom manipulation from model