updated some code positioning

removed bad code, and moved code causing bombs of the webkit views.