adjusting view size according to 10.10