Working with history view and autolayout