break htmlelement class into different methods