changes in auto layout, made model a singleton