clear code in views