Use a component instead of doing dom manipulation from the controller