separated drawframe and update
removed reason behind double updating