move autolayout to core