added access controls, fixed autolayout