fix views structure