Remove dead code. Change dom element according to selected activity.