modified some constrains to works on iOS8