Moved margin setting to addToView