add iOs6 compatibility

some bugs with views on iOs6 fixed,
clean constraint management