cleanup formatting for views