fixed autolayout error on 4s and misc optimizations