Added autolayout constraints and log messages to check frame size update.