fix for adjusting view